#pragma once
 #include "AddInBaseOperator.h"
 #include "GeosTranf.h"
#include "dmentitybase.h"
class CPolygonPara;
class CPolygonOperator: public COperatorCurEditBase
{
public:
	CPolygonOperator(HDiMineView *pHView, IDMAddIn *pAddIn);
	~CPolygonOperator(void);
private:
	virtual int Init();
	virtual void OnExit();
	virtual int OnLButtonDown(dmEventInfo& hEvent);
	virtual int OnRButtonDown(dmEventInfo& hEvent);
	virtual void Resume(void* pUserData);
	virtual int ExcuteCommand(const char* cmdLine);
public:
	BOOL JudgePlanar();
	HDiMineView* m_pView;
	int m_State;
	CGeosTranf   m_GeosTranf;
	CdmLayerBase* m_pNewDataLayer;
	dmDPoint* pPts1 ,* pPts2 ,** pPts3 ;
	int iPtNum1 ,iPtNum2,*iPtNum3 ;
	CPolygonPara* m_pParamDlg;
	CdmEntityBase *m_FirstSel, *m_SecondSel;
	
};
